/**
 * 
 */
package cn.ad.server.web.spring.aop;

import org.aspectj.lang.JoinPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 异常拦截监听
 * @author Wu Chengjun
 */
public class ExceptionAspect {

	private final static Logger LOGGER = LoggerFactory.getLogger(ExceptionAspect.class);
	
    public void afterThrowing(JoinPoint jp, Throwable ex){
	   LOGGER.error("method " + jp.getTarget().getClass().getName() + "." + jp.getSignature().getName() + " throw exception:", ex);
    }
}
